import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { CheckboxComponent } from './checkbox/checkbox.component';
import { RadioComponent } from './radio/radio.component';
import { RadioGroupComponent } from './radio-group/radio-group.component';
import { TreeComponent } from './tree/tree.component';
import { AlertComponent,AlertService } from './alert/alert.component';
import { TabsComponent,Tab,TabContent } from './tabs/tabs.component';
import { TemplateComponent } from './template/template.component';
import { ModalComponent,ModalService} from './modal/modal.component';
import { DatepickerComponent } from './datepicker/datepicker.component'

/**此组件用来测试动态生成组件的demo*/
import { FooComponent } from './foo/foo.component';
import { PaginationComponent } from './pagination/pagination.component';
 


/**共享模块*/
@NgModule({
  imports: [
    CommonModule,
    FormsModule
  ],
  declarations: [
    CheckboxComponent,
    RadioComponent,
    RadioGroupComponent,
    TreeComponent,
    AlertComponent,
    TabsComponent,
    Tab,
    TabContent,
    ModalComponent,
    TemplateComponent,
    DatepickerComponent, 
    PaginationComponent,
    FooComponent
    ],
  exports:[
    CheckboxComponent,
    RadioComponent,
    RadioGroupComponent,
    TreeComponent,
    AlertComponent,
    TabsComponent,
    Tab,
    TabContent,
    ModalComponent,
    PaginationComponent,
    DatepickerComponent,
    TemplateComponent
    ],
    entryComponents:[FooComponent,AlertComponent,ModalComponent],
    providers:[AlertService,ModalService]
})
export class ShareModule {}
